import React, { Component } from 'react';

class App extends Component {
  componentDidUpdate(){
    console.log("更新完毕了");
  }
  render() {
    return (
      <div>
        <button onClick={()=>{
          this.forceUpdate();
        }}>强制更新</button>
      </div>
    );
  }
}

export default App;
